<template>
  <div class="box">
    <div class="box-left">
      <img src="https://flowbite.com/docs/images/logo.svg" alt="" />
      <span>氢氦锂铍硼</span>
    </div>
    <div class="box-center">
      <slot></slot>
    </div>
    <div class="box-right">
      <el-input v-model="input" placeholder="请输入内容"></el-input>
      <div class="touxiang"></div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      input: "",
    };
  },
};
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
}
.box {
  width: 1280px;
  height: 70px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}
.box-left {
  display: flex;
  align-items: center;
}
.box-left img {
  margin-right: 5px;
}
.box-left span {
  font-size: 24px;
  font-weight: 600;
  line-height: 70px;
}
.box-right {
  display: flex;
  align-items: center;
}
.touxiang {
  width: 42px;
  height: 32px;
  border-radius: 50%;
  margin-left: 10px;
  background-color: skyblue;
  box-sizing: border-box;
}
</style>